package com.icson.oa.bean;

import java.io.UnsupportedEncodingException;
import java.util.Date;

public class User {
	private Integer id;
	private String user;
	private String password;
	private int staff_no;
	private int telephone;
	private String chinese_name;
	private String msn;
	private int sex;
	private Date birthday;
	private int identity_card;
	private Date entry_date;
	private int job;
	private int status;
	private String comments;

	public String getComments() {
		return comments;
	}

	public void setComments(String comments) {
		this.comments = comments;
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getUser() {
		return user;
	}

	public void setUser(String user) {
		this.user = user;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public int getStaff_no() {
		return staff_no;
	}

	public void setStaff_no(int staff_no) {
		this.staff_no = staff_no;
	}

	public int getTelephone() {
		return telephone;
	}

	public void setTelephone(int telephone) {
		this.telephone = telephone;
	}

	public String getChinese_name() {
		return chinese_name;
	}

	public void setChinese_name(String chinese_name) {
		this.chinese_name = chinese_name;
	}

	public String getMsn() {
		return msn;
	}

	public void setMsn(String msn) throws UnsupportedEncodingException {
		this.msn = new String(msn.getBytes("ISO8859-1"), "UTF-8");
		;
	}

	public int getSex() {
		return sex;
	}

	public void setSex(int sex) {
		this.sex = sex;
	}

	public Date getBirthday() {
		return birthday;
	}

	public void setBirthday(Date birthday) {
		this.birthday = birthday;
	}

	public int getIdentity_card() {
		return identity_card;
	}

	public void setIdentity_card(int identity_card) {
		this.identity_card = identity_card;
	}

	public Date getEntry_date() {
		return entry_date;
	}

	public void setEntry_date(Date entry_date) {
		this.entry_date = entry_date;
	}

	public int getJob() {
		return job;
	}

	public void setJob(int job) {
		this.job = job;
	}

	public int getStatus() {
		return status;
	}

	public void setStatus(int status) {
		this.status = status;
	}

}
